<html>
<head><meta charset="utf-8"><title>Build compiler with `-Copt-level = 2` · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Build.20compiler.20with.20.60-Copt-level.20.3D.202.60.html">Build compiler with `-Copt-level = 2`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="201307686"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Build%20compiler%20with%20%60-Copt-level%20%3D%202%60/near/201307686" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Build.20compiler.20with.20.60-Copt-level.20.3D.202.60.html#201307686">(Jun 18 2020 at 18:29)</a>:</h4>
<p>The <code>optimize</code> option in <code>config.toml</code> is a boolean that selects either the release (-O3) or development (-O0) profile. What is the preferred way to build the compiler at a non-default opt-level? <code>RUSTFLAGS</code>?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>